export default class Product {
  productId = 0; //商品Id 淘宝id
  picUrl = ''; //主要图url
  couponMoney = 0; //领券省多少钱
  title = ''; //标题
  longTitle = ''; //长标题
  quanhouPrice = 0; //卷后价
  realPrice = 0; //真实价格
  smallImages = []; //轮播图
  user_type = 0; //类型 0淘宝 1天猫
  volume = 0; //月销
  couponUrl = ''; //劵Url
  coupon_start_time = ''; //劵开始时间
  coupon_end_time = ''; //劵结束时间
  recommendation = ''; //推荐语
  todaysale = 0; //当天销量

  dy_video_url = ''; //抖音视频地址
  dy_video_title = ''; //抖音标题

  shopname = '';

  getTypeName() {
    switch (this.user_type) {
      case 0:
        return '淘宝';
      case 1:
        return '天猫';
      default:
        return '淘宝';
    }
  }
}
